class Version {

  static constraints = {
    imageHeight(min:1) // Integer fields are strictly positive
    imageWidth(min:1)
    //fileSize(min:1L) // There appears to be a bug in GORM due to which constraints on long fields fail
  }

  static belongsTo = Master

  long fileSize
  int imageHeight
  int imageWidth
  int versionTypeId
  Master master
}
